<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="am-u-sm-9">
<ol class="am-breadcrumb">
  <li><a href="#">会员管理</a></li>
  <li class="am-active">帐号审核</li>
</ol>
<form class="am-form am-form-horizontal" action="${ctx}/admin/buyer/update.do" method="post">
  <input type="hidden" name="id" value="${buyer.id}"/>
  <input type="hidden" name="pageNo" value="${param.pageNo}"/>
  <div class="am-form-group">
    <label  class="am-u-sm-2 am-form-label">帐号</label>
    <div class="am-u-sm-6 am-fl-im">
      <input type="text" name="account" class="am-form-field am-input-sm"  value="${buyer.account}" readonly>
    </div>
  </div>

  <div class="am-form-group">
        <label  class="am-u-sm-2 am-form-label">帐号状态</label>
        <div class="am-u-sm-6 am-fl-im">
            <select name="state">
                <option value="0">冻结</option>
                <option value="1">正常</option>
            </select>
        </div>
    </div>
  <div class="am-form-group">
        <label  class="am-u-sm-2 am-form-label">认证状态</label>
        <div class="am-u-sm-6 am-fl-im">
            <select name="identification">
                <option value="0">未认证</option>
                <option value="1">已认证</option>
            </select>
        </div>
    </div>

  <div class="am-form-group">
    <div class="am-u-sm-10 am-u-sm-offset-2">
      <button type="submit" class="am-btn am-btn-success">提交</button>
      <button type="button" class="am-btn am-btn-default" onclick="goback()">返回</button>
    </div>
  </div>
</form>
</div>
<script>
   $(function(){
      <!--select fill value-->
      $("select[name=state]").val(${buyer.state});
      $("select[name=identification]").val(${buyer.identification});
   });

  function goback(){
    var pageNo = '${param.pageNo}';
    pageNo = (pageNo==null || pageNo==''||pageNo<1)?1:pageNo;
    location.href="${ctx}/admin/buyer/index.do?pageNo="+pageNo;
  }


</script>